//
//  RMMTaoCanOrderTimerView.m
//  Romomo
//
//  Created by puman on 2016/12/29.
//  Copyright © 2016年 mazegong. All rights reserved.
//

#import "RMMTaoCanOrderTimerView.h"

@implementation RMMTaoCanOrderTimerView
- (instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = COLORFROMCODE(0xF39805, 1);
        _timerLabel = [[UILabel alloc] initWithFrame:CGRectMake(15, 0, 80, self.height)];
        _timerLabel.textColor = kWhiteColor;
        _timerLabel.font = kFont(13);
        _timerLabel.text = @"30:00";
        [self addSubview:_timerLabel];
        
        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(_timerLabel.right, 0, self.width - _timerLabel.right - 15, self.height)];
        label.textColor = kWhiteColor;
        label.font = kFont(13);
        label.text = @"如支付超时,订单将自动取消";
        label.textAlignment = NSTextAlignmentRight;
        [self addSubview:label];

    }
    return self;
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
